package com.itheima.health.dao;

import com.itheima.health.pojo.Permission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface PermisssionDao {
    @Select("select t_permission.* from t_permission join t_role_permission on t_permission.id = t_role_permission.permission_id where t_role_permission.role_id = #{id}")
    List<Permission> findPermisssByUserId(Integer id);
}
